import Vue from 'vue'
import VueRouter from 'vue-router'
import baiyanjie from './list/baiyanjie/index.js'
import caixia from './list/caixia/index.js'
import qiqi from './list/qiqi/index.js'
import wangjiaqing from './list/wangjiaqing/index.js'
import xingyu from './list/xingyu/index.js'

Vue.use(VueRouter)

const routes = [
  ...baiyanjie,
  ...caixia,
  ...qiqi,
  ...wangjiaqing,
  ...xingyu,

  //路由重定向
  {
    path: '/',
<<<<<<< HEAD
<<<<<<< HEAD
    redirect:'/xingyu'
},
{
  path: '/chatrouter',
  name: 'chatrouter',
  component: () => import('@/views/xingyu/ChatRouter.vue'),
},


]

const router = new VueRouter({
  mode: 'history',
=======
    redirect: '/xingyu'
=======
    redirect: '/baike'
>>>>>>> qiqi
  }

  //404页面
]

const router = new VueRouter({
  mode: 'hash',
<<<<<<< HEAD
>>>>>>> caixia
=======
>>>>>>> qiqi
  base: process.env.BASE_URL,
  routes
})

export default router
